/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.devops_rdc.transform.v20200303;

import com.aliyuncs.devops_rdc.model.v20200303.CreateCommonGroupResponse;
import com.aliyuncs.devops_rdc.model.v20200303.CreateCommonGroupResponse.Object;
import com.aliyuncs.transform.UnmarshallerContext;


public class CreateCommonGroupResponseUnmarshaller {

	public static CreateCommonGroupResponse unmarshall(CreateCommonGroupResponse createCommonGroupResponse, UnmarshallerContext _ctx) {
		
		createCommonGroupResponse.setRequestId(_ctx.stringValue("CreateCommonGroupResponse.RequestId"));
		createCommonGroupResponse.setErrorMsg(_ctx.stringValue("CreateCommonGroupResponse.ErrorMsg"));
		createCommonGroupResponse.setSuccessful(_ctx.booleanValue("CreateCommonGroupResponse.Successful"));
		createCommonGroupResponse.setErrorCode(_ctx.stringValue("CreateCommonGroupResponse.ErrorCode"));

		Object object = new Object();
		object.setId(_ctx.stringValue("CreateCommonGroupResponse.Object.Id"));
		createCommonGroupResponse.setObject(object);
	 
	 	return createCommonGroupResponse;
	}
}